package com.zone.lib.download.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;

/**
 * @Author: pkqlqx
 * @CreateDate: 2021/12/7 16:52
 * @Description:
 */
@Entity
public class Download  implements Serializable {

    private static final long serialVersionUID = -7938655317438587046L;

    @Id(autoincrement = true)
    private Long id;

    @Property
    private String code;

    @Property
    private String name;

    @Property
    private String icon;
    @Property
    private String preview;
    @Property
    private String previewType;

    @Property
    private String downloadUrl;

    @Property
    private String filePath;

    @Property
    private String packageName;

    @Property
    private long size;

    @Property
    private String appType;

    @Property
    private String lastVersion;

    @Property
    private String version;

    @Property
    private long downloadLocation;

    @Property
    private long total;

    @Property
    private int downloadStatus;

    @Property
    private String oneWord;

    @Property
    private String createTime;

    @Property
    private boolean isFree;

    @Generated(hash = 871540901)
    public Download(Long id, String code, String name, String icon, String preview,
            String previewType, String downloadUrl, String filePath,
            String packageName, long size, String appType, String lastVersion,
            String version, long downloadLocation, long total, int downloadStatus,
            String oneWord, String createTime, boolean isFree) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.icon = icon;
        this.preview = preview;
        this.previewType = previewType;
        this.downloadUrl = downloadUrl;
        this.filePath = filePath;
        this.packageName = packageName;
        this.size = size;
        this.appType = appType;
        this.lastVersion = lastVersion;
        this.version = version;
        this.downloadLocation = downloadLocation;
        this.total = total;
        this.downloadStatus = downloadStatus;
        this.oneWord = oneWord;
        this.createTime = createTime;
        this.isFree = isFree;
    }

    @Generated(hash = 1462805409)
    public Download() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDownloadUrl() {
        return this.downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getFilePath() {
        return this.filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public long getSize() {
        return this.size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getAppType() {
        return this.appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getVersion() {
        return this.version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public long getDownloadLocation() {
        return this.downloadLocation;
    }

    public void setDownloadLocation(long downloadLocation) {
        this.downloadLocation = downloadLocation;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getDownloadStatus() {
        return this.downloadStatus;
    }

    public void setDownloadStatus(int downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPreview() {
        return this.preview;
    }

    public void setPreview(String preview) {
        this.preview = preview;
    }

    public String getPreviewType() {
        return this.previewType;
    }

    public void setPreviewType(String previewType) {
        this.previewType = previewType;
    }

    public String getPackageName() {
        return this.packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getLastVersion() {
        return this.lastVersion;
    }

    public void setLastVersion(String lastVersion) {
        this.lastVersion = lastVersion;
    }

    public String getOneWord() {
        return this.oneWord;
    }

    public void setOneWord(String oneWord) {
        this.oneWord = oneWord;
    }

    public boolean getIsFree() {
        return this.isFree;
    }

    public void setIsFree(boolean isFree) {
        this.isFree = isFree;
    }
}
